package cn.tedu.imop.basic.service;
import cn.tedu.imop.common.pojo.PageData;
import cn.tedu.imop.basic.entity.BusinessCategory;

/**
 * 商家分类的业务层接口
 * getXxxList
 * createXxxx
 * editXXX
 * removeXXX
 */
public interface BusinessCategoryService {
    /**
     * 查询商家分类列表信息
     * @param category
     * @return
     */
    PageData<BusinessCategory> getBusinessCategoryList(BusinessCategory category);
    default BusinessCategory getBusinessCategory(BusinessCategory category){
        return null;
    }
    /**
     * 添加新的商家分类信息
     * @param category
     * @return
     */
    Boolean createBusinessCategory(BusinessCategory category);
    default Boolean editBusinessCategory(BusinessCategory category){
        return true;
    }
    default Boolean removeBusinessCategory(Integer id){
        return true;
    };
}
